class Cookbook
  attr_accessor :title, :author
  def initialize
    @recipes = []
  end
  def method_missing(m,*args,&block)
    @recipes.send(m,*args,&block)
  end
end

cb = Cookbook.new
beef_dishes = cb.select {|recipes| recipe.main_ingredient == "beef"}